Skip to content

fix(iceberg): advertise supported endpoints in /v1/config - #1775

Merged
TylerHillery merged 5 commits into
supabase:masterfrom
md1qamar:fix/iceberg-config-endpoints
Dec 4, 2026
Merged

TylerHillery merged 5 commits into
supabase:masterfrom
md1qamar:fix/iceberg-config-endpoints

Conversation

@md1qamar

Copy link
Copy Markdown
Contributor

Summary

Fixes #1762.

  • Export SUPPORTED_ICEBERG_ENDPOINTS and return endpoints in TenantAwareRestCatalog.getConfig (src/storage/protocols/iceberg/catalog/tenant-catalog.ts): GET /v1/config now advertises the exact 11 namespace and table routes implemented under src/http/routes/iceberg/ (namespace.ts and table.ts), excluding unimplemented operations (POST /v1/{prefix}/namespaces/{namespace}/properties, POST /v1/{prefix}/tables/rename, POST /v1/{prefix}/namespaces/{namespace}/register) so clients such as pyiceberg fail fast with NotImplementedError instead of issuing doomed requests.
  • Preserve upstream endpoints in RestCatalogClient.getConfig (src/storage/protocols/iceberg/catalog/rest-catalog-client.ts): When the upstream catalog returns an endpoints array, forward a shallow copy alongside defaults and overrides (while continuing to omit endpoints when upstream omits it).
  • Regression tests (tenant-catalog.test.ts, rest-catalog-client.test.ts): Added unit tests covering SUPPORTED_ICEBERG_ENDPOINTS, exclusion of unsupported routes, immutability of the exported constant, and preserving vs. omitting endpoints in RestCatalogClient.getConfig.

Verification

  • npx tsc --noEmit — passed (0 errors)
  • npx biome lint on the 4 modified files — passed (0 errors)
  • npx vitest run --config vitest.unit.config.ts --maxWorkers=1 src/storage/protocols/iceberg/catalog/tenant-catalog.test.ts src/storage/protocols/iceberg/catalog/rest-catalog-client.test.ts src/storage/protocols/iceberg/catalog/rest-catalog-client.contract.test.ts src/storage/protocols/iceberg/catalog/reconciler.test.ts src/storage/protocols/iceberg/catalog/reclaim-shard-slots.test.ts — 5 test files passed, 137 / 137 tests passed

@md1qamar
md1qamar requested a review from a team as a code owner November 30, 2026 02:56
@coveralls

coveralls commented Dec 4, 2026 •

Copy link
Copy Markdown

Coverage Report for CI Build 47403419003

Coverage remained the same at 88.883%

Details

  • Coverage remained the same as the base build.
  • Patch coverage: 1 of 1 lines across 1 file are fully covered (100%).
  • No coverage regressions found.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 19648
Covered Lines: 17989
Line Coverage: 91.56%
Relevant Branches: 12367
Covered Branches: 10467
Branch Coverage: 84.64%
Branches in Coverage %: Yes
Coverage Strength: 1276.87 hits per line

💛 - Coveralls

@TylerHillery

Copy link
Copy Markdown
Contributor

@md1qamar thanks for your contribution. I had a few minor nits that I went ahead and took care of myself so I could merge this right away (will do once CI passes). You'll still get the attribution once it's merged.

(Removed the upstream endpoints passthrough in RestCatalogClient and added a test that keeps SUPPORTED_ICEBERG_ENDPOINTS in sync with the registered routes.)

@TylerHillery
TylerHillery merged commit 2ef33f3 into supabase:master Dec 4, 2026
33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Iceberg catalog: advertise supported endpoints in /v1/config

4 participants